#include<iostream>
#include<cstring>
using namespace std;
class Stu
{
    public:
        string name,id,college;
        string gender,phone;
};
int main()
{
    int time;
    cin>>time;
    Stu* stus=new Stu[time];
    for(int i=0;i<time;i++)
    {
        cin>>stus[i].name>>stus[i].id>>stus[i].gender>>stus[i].college>>stus[i].phone;
    }
    for(int i=0;i<time;i++)
    {
        cout<<stus[i].name<<endl;
    }
    delete[] stus;
}